package com.caiheng.api.entity.estate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 商家的管理用户wxuser的用户对象 estate_user
 *
 * @author ruoyi
 * @date 2022-04-27
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("estate_user")
public class EstateUser implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 小区id
     */
    private Integer estateId;

    private Integer deptId;

    /**
     * 微信用户id
     */
    private Integer userId;

    /**
     * 管理员id
     */
    private Long sysUserId;

    /**
     * 微信昵称
     */
    private String nickName;

    /**
     * 用户类型
     */
    private Integer userType;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 0 - 禁用 1 - 可用
     */
    private Integer state;

    private Integer isManager;

    @TableField(exist = false)
    private String sysUserName;


    @TableField(exist = false)
    private String phoneNum;

    @TableField(exist = false)
    private String estateName;

    @TableField(exist = false)
    private String deptName;

    @TableField(exist = false)
    private Integer isCheck = 0;

    @TableField(exist = false)
    private Integer isBand = 0;
}
